package v1

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"server/internal/model"
	"server/pkg/app"
)

func ListHisPipe(c *gin.Context) {
	pages := &app.Page{}
	pages.Info(c)
	his_pipe := &model.HisPipe{}
	pipe_list, total := his_pipe.List(pages)
	c.JSON(http.StatusOK, gin.H{
		"total": total,
		"data":  pipe_list,
	})
}

// 失败流水线重试
func RetryHisPipe(c *gin.Context) {}

// 流水线报表
func GetHisPipeReport(c *gin.Context) {}
